export type AuthorizeFormPropsType = {
  //宽度
  width?: string | number
  //高度
  height?: string | number
}

export type AuthorizeFormDataType = {
  resId: string
  sysIds: { [key: string]: boolean }
  menuIds: { [key: string]: boolean }
  permIds: { [key: string]: boolean }
}

export type PermissionType = {
  id: string
  menuId: string
  permName: string
  permCode: string
}

export type MenuType = {
  id: string
  sysId: string
  parentId: string
  menuName: string
  menuTitle: string
  menuIcon: string
  menus?: MenuType[]
  permissions?: PermissionType[]
}

export type SystemType = {
  id: string
  sysName: string
  groupId: string
  sysIcon?: string
  iconColor?: string
  menus?: MenuType[]
}

export type SystemGroupType = {
  id: string
  groupName: string
  note?: string
  sortIndex?: number
  systems?: SystemType[]
}
